package com.example.demo01.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName IndexController
 * @Description TODO
 * @Author HP
 * @Date 9:17 2022/8/16
 * @Version 1.0
 **/
@RestController
public class IndexController {
    @Value("${xx.xx}")
    private String name;

    @RequestMapping
    public String name(){
        return name;
    }
}
